package com.example.demo.bean;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

//后面需要加实体类
public interface shangpinDao extends JpaRepository <shangpin,Integer>{
    List<shangpin> findByNameAndStatus(String name, int status);
    List<shangpin> findByName(String nane);
    List<shangpin> findByStatus(int status);
}
